<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>flashobject.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">flashobject.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Wrapper on a Flash object embedded in the HTML page.
 This class contains routines for writing the HTML to create the Flash object
 using a goog.ui.Component approach. Tested on Firefox 1.5, 2 and 3, IE6, 7,
 Konqueror, Chrome and Safari.

 Based on <a href="http://go/flashobject.js">http://go/flashobject.js</a>

 Based on the following compatibility test suite:
 <a href="http://www.bobbyvandersluis.com/flashembed/testsuite/">http://www.bobbyvandersluis.com/flashembed/testsuite/</a>

 TODO(user): take a look at swfobject, and maybe use it instead of the current
 flash embedding method.

 Examples of usage:

 <pre class="lang-js prettyprint">
 var flash = new goog.ui.media.FlashObject('<a href="http://hostname/flash.swf&#39;">http://hostname/flash.swf'</a>);
 flash.setFlashVar('myvar', 'foo');
 flash.render(goog.dom.getElement('parent'));
 </pre>

 TODO(user, jessan): create a goog.ui.media.BrowserInterfaceFlashObject that
 subclasses goog.ui.media.FlashObject to provide all the goodness of
 <a href="http://go/browserinterface.as">http://go/browserinterface.as</a>
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="closure_goog_ui_media_flashobject.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/closure/goog/ui/media/flashobject.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">ui/media/flashobject.js</div>
    </div>
  </div>
<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_FlashObject.html">
          goog.ui.media.FlashObject</a><br/>
        <div class="class-details">A very simple flash wrapper, that allows you to create flash object
programmatically, instead of embedding your own HTML. It extends
goog.ui.Component, which makes it very easy to be embedded on the
page.</div>
 </div>
      
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>



<h2>Enumerations</h2>






<div class="section">
  <table class="horiz-rule">


  </table>
</div>







  <h2>Global Properties</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.CSS_CLASS"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">CSS_CLASS</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       The component CSS namespace.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line175">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.FF_HTML_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">FF_HTML_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       Template for the embed tag for FF.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line225">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.FF_WMODE_PARAMS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">FF_WMODE_PARAMS_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       Template for the wmode param for Firefox.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line248">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.FLASH_CSS_CLASS"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">FLASH_CSS_CLASS</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       The flash object CSS class.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line183">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.IE_HTML_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">IE_HTML_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       Template for the object tag for IE.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line193">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.ui.media.FlashObject.IE_WMODE_PARAMS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.FlashObject.</span><span class="entryName">IE_WMODE_PARAMS_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       Template for the wmode param for IE.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_flashobject.js.source.html#line216">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory media</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="ui/media/flashobject.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
